import request from "@/utils/request";

// 查询分类列表
export function classifyList(data) {
  return request({
    url: "/CargoType/page",
    method: "post",
    data: data,
  });
}

// 新增分类
export function addClassify(data) {
  return request({
    url: "/CargoType/add",
    method: "post",
    data: data,
  });
}

// 编辑分类
export function updateClassify(data) {
  return request({
    url: "/CargoType/update",
    method: "post",
    data: data,
  });
}

// 删除分类
export function deleteClassify(query) {
  return request({
    url: "/CargoType/deleted",
    method: "get",
    params: query,
  });
}
